/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2020-05-01
 * Time: 11:00
 */
#include <iostream>
#include "Context.h"
#include "BackDoor.h"
#include "GivenGreenLight.h"
#include "BlockEnemy.h"


using namespace std;


int main(){
    Context *context ;
    cout<<"刚到吴国，拆第一个"<<endl;
    context = new Context( new BackDoor());
    context->operate();
    cout<<"刘备乐不思蜀了，拆第二个锦囊"<<endl;
    context = new Context(new GivenGreenLight());
    context->operate();

    cout<<"追兵追来了，该第三个锦囊了"<<endl;
    context = new Context(new BlockEnemy());
    context->operate();
    return 0;
}